#ifndef _GLOBALS_H
#define _GLOBALS_H

//includes
#include <allegro.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

//defines
#define MAP_H               25
#define MAP_W               40
#define TILE_SIZE           16
#define SCREEN_SIZE_W       640
#define SCREEN_SIZE_H       480
#define EDIT_MAP_SIZE_W     640
#define EDIT_MENU_SIZE_W    640
#define EDIT_MAP_SIZE_H     400
#define EDIT_MENU_SIZE_H    80


BITMAP   *buffer;                               // Create buffer for double buffering
BITMAP   *menu_buffer;                     // Create secondary buffer for stretching bitmaps if GFX mode is changed higher
BITMAP   *tile[46];                                 //Holds bitmap for each tile
DATAFILE *maptiles;                             //Data file for the sprites

   
int     quit,i,j,
        sx1,sy1,sx2,sy2,
        tx,ty,tpic,
        tdraw1,tdraw2,tdraw3,tdraw4,tdraw5,
        world_x,world_y;

int keyhold[119];  

char cur_map_name[15];
        
#endif
